home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / alynx / goodies / resize.readme < prev   
Text File  |  1995-04-20  |  1KB  |  34 lines

  1. Short:    handle COLS/LINES/SCREENMODE env-vars
  2. Uploader: marquardt_p@fhi-berlin.mpg.de (P.Marquardt)
  3. Author:   marquardt_p@fhi-berlin.mpg.de (P.Marquardt, wwwutz@IRC)
  4. Type:     util/cli
  5.  
  6. Purpose: show/set/save $COLS/$LINES/$SCREENMODE vars
  7.  
  8. ReSize is a small tool to calculate the number of rows/columns of the
  9. current active cli-window and set environment-vars accordingly.
  10. It was written due to the lack of such vars in some shells.
  11.  
  12. ReSize makes your life easy ! Why ? Consider this:
  13.  
  14. Shellwindow, size 720x443.  Now you plan to start a program in this window
  15. which requires the local vars $LINES & $COLS to be set up correct (ALynx,
  16. for example).  Ok, lets count columns...  1,2,3...85,86,87.  Now the rows:
  17. 1,2,3...50,51,52,53. Now set the vars: "set lines 53" "set cols 87". Hmmm,
  18. maybe better setenv them: "setenv lines 53" "setenv cols 87". Hmm, I like
  19. to save them forever: "copy env:(cols|lines) envarc:". Btw, what was this
  20. cryptic hex-code of my current screenmode ? Hmmm... Where's my gun ?
  21.                   ">CLICK< >CLICK< >CLICK<  ** KABOOM **"
  22.  
  23. You would still be alive with ReSize!
  24.  
  25. ReSize SET/S,SETENV/S,SAVE/S,VERBOSE=V/S
  26.        SET/S set local
  27.     SETENV/S set global ENV:
  28.       SAVE/S save in ENVARC:
  29.  VERBOSE=V/S be verbose
  30.  
  31. SAS-C source included. Crippled SUXX-Ware.
  32.  
  33. Major updates planned: ixemul.library-support, sound-fx, register.exe.
  34.